package com.meowcook.dao;

import com.meowcook.pojo.po.LikeComment;
import org.apache.ibatis.annotations.Param;

public interface LikeCommentMapper {
    int insert(LikeComment row);

    int insertSelective(LikeComment row);

    LikeComment selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(LikeComment row);

    int updateByPrimaryKey(LikeComment row);

    /**
     * 根据userId和recipeId查询
     * @param userId 用户id
     * @param commentId 评论id
     * @return Like
     */
    LikeComment selectByUserIdAndCommentId(@Param("userId") Long userId, @Param("commentId") Long commentId);
}